
var nav_items =  document.querySelectorAll('.nav-item-menu');
var nav_item_contents = document.querySelectorAll('.public-nav-content-wrapper');
for(let item of nav_items) {
    item.addEventListener('mouseenter',function(){
        let index = this.getAttribute('data-index');
        for (let i = 0; i < nav_item_contents.length; i += 1) {
            let item1 = nav_item_contents[i];
            if(index == i+1) {
                item1.style.display = 'flex';
            } else {
                item1.style.display = 'none';
            }
        }
    });
}